package com.Cychat.commons.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("notice")
@AllArgsConstructor
@NoArgsConstructor
public class Notice {
    @Schema(description="公告ID")
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Integer noticeId;
    @Schema(description="公告标题")
    private String title;
    @Schema(description="公告内容")
    private String text;
    @Schema(description="图片URL集合")
    private String images;
    @Schema(description="公告类型，1轮播图，2公告")
    private Integer type;
    @Schema(description="修改时间")
    private Date updateTime;
}
